package com.acce.service.card.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.acce.service.card.dao.ILogDao;
import com.acce.service.card.dao.IQrScanDao;
import com.acce.service.card.pojo.QrScan;
import com.acce.service.card.service.IUserService;

@Service("userService")
public class UserServiceImpl implements IUserService {
	

	
	@Resource
	private ILogDao logDao;
	
	@Resource
	private IQrScanDao qrScanDao;
	

	@Override
	public boolean createQrUid(String uuid) {
		return qrScanDao.createQrUid(uuid) > 0 ? true : false;
	}

	@Override
	public boolean updateScanQr(QrScan qrScan) {
		return qrScanDao.updateScanQr(qrScan) > 0 ? true : false;
	}

	@Override
	public QrScan scanFlag(String uid) {
		return qrScanDao.scanFlag(uid);
	}

}
